<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./assets/mui/css/mui.css">
    <link rel="stylesheet" href="./css/mybase.css">
    <script src="./assets/mui/js/mui.js"></script>
    <link rel="stylesheet" href="./css/myindex.css">
    <!-- <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> -->
    <link rel="stylesheet" href="./assets/fontAwesome/css/font-awesome.min.css">
    <script src="./assets/zepto/zepto.min.js"></script>
    <script src="./js/address1.js"></script>
    <script src="./assets/artTemplate/template-web.js"></script>
    <link rel="stylesheet" href="./css/address.css">
    <style>
        /* div {
            width: 100%;
            padding: 10px 15px;
            border-bottom: 1px solid grey;
        } */
    </style>
</head>
<body>
    <header class="mui-bar mui-bar-nav">
        <a class="mui-icon mui-icon-search mui-pull-right"></a>
        <h1 class="mui-title">我的收货地址管理</h1>
        <a class="mui-icon mui-icon-arrowleft mui-pull-left"></a>
    </header>
    <div style="margin-top: 44px; text-align: center; font-size: 14px;">添加收货地址</div>
    <nav class="mui-bar mui-bar-tab footer">
            <a class="mui-tab-item" href="index.html">
                <span class="mui-icon mui-icon-home"></span>
                <span class="mui-tab-label">首页</span>
            </a>
            <a class="mui-tab-item" href="category.html">
                <span class="mui-icon mui-icon-bars"></span>
                <span class="mui-tab-label">分类</span>
            </a>
            <a class="mui-tab-item" href="cart.html">
                <span class="mui-icon fa fa-shopping-cart"></span>
                <span class="mui-tab-label">购物车</span>
            </a>
            <a class="mui-tab-item mui-active" href="user.html">
                <span class="mui-icon mui-icon-person"></span>
                <span class="mui-tab-label">会员中心</span>
            </a>
        </nav>

        <div class="myaddress">
            <!-- 我的收货地址 -->
            <ul class='mui-table-view' id='adsBox'>
                <li class='mui-table-view-cell'>
                    <a href="addaddress.html" class='mui-navigate-right'>
                        我的添加收货地址
                    </a>
                </li>
            </ul>

            <ul class="mui-table-view" id='shdz'>
                <!-- <li class="mui-table-view-cell mui-media">
                    <div class='mui-slider-handle'>
                        <a href="javascript:;">
                            <div class="mui-media-body">
                                <p>
                                    <span>邮编:</span>
                                    <span>收货人:</span>
                                </p>
                                <p class="mui-ellipsis">地址:</p>
                            </div>
                        </a>
                    </div>
                        <div class='mui-slider-right mui-disabled'>
                            <a class='mui-btn mui-btn-red'>删除</a>
                            <a class='mui-btn mui-btn-blue'>编辑</a>
                        </div>
                </li> -->
            </ul>
        
            <!-- <ul id='OA_task_1' class='mui-table-view'>
                <li class='mui-table-view-cell'>
                    <div class='mui-slider-right mui-disabled'>
                        <a class='mui-btn mui-btn-red'>删除</a>
                    </div>
                    <div class='mui-slider-handle'>

                    </div>
                </li>
            </ul> -->
        </div>

        <script type='text/html' id='shdzTmp'>
            {{each allAdrs item i}}
            
            <li class="mui-table-view-cell mui-media">
                    <div class='mui-slider-handle'>
                        <a href="javascript:;">
                            <div class="mui-media-body">
                                <p>
                                    <span>邮编:{{item.postCode}}</span>
                                    <span>收货人:{{item.recipients}}</span>
                                </p>
                                <p class="mui-ellipsis">地址:{{item.address}}{{item.addressDetail}}</p>
                            </div>
                        </a>
                    </div>
                        <div class='mui-slider-right mui-disabled'>
                            <a class='mui-btn mui-btn-red del-btn' data-id='{{item.id}}'>删除</a>
                            <a class='mui-btn mui-btn-blue edit-btn' data-id='{{item.id}}'>编辑</a>
                        </div>
                </li>
            {{/each}}
        </script>
</body>
</html>